package com.fary;

import com.fary.config.AnnotationConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Fary
 * @version 1.0
 * @description: TODO
 * @date 2021/11/5 9:45
 */
public class Test {

    public static void main(String[] args) {
//        ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
//        String[] postProcessorNames = ac.getBeanNamesForType(BeanPostProcessor.class, true, false);


        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AnnotationConfig.class);
        applicationContext.getBean("student");
    }
}
